
import $ajax from '../../helper/ajax'
import { baseUrl, MallReqUrl } from '../../helper/constants'

// 查询用户信息
export async function getUserInfo(params) {
  return await $ajax.post(`${baseUrl}${MallReqUrl.getUserInfo}`, params)
}
// 发送验证码
export async function sendCode(params) {
  return await $ajax.post(`${baseUrl}${MallReqUrl.sendSms}`, params)
}
// 登录
export async function login(params) {
  return await $ajax.post(`${baseUrl}${MallReqUrl.login}`, params)
}